import "./style.css";
// import MainView from "./views/mainView/mainView";
import { useRoutes, BrowserRouter } from "react-router-dom";
import { routes } from './router';
function App() {
  const element = useRoutes(routes);
  return (
    <div className="App">
      {element}
    </div>
      // <MainView />
  );
}
export default function RootApp() {
  return (
    <BrowserRouter>
      <App />
    </BrowserRouter>
  );
}
// export default App;
